package com.travelsky.flash.vo;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @Description 打包服务器对象
 * @author syuan
 * @date 2015年5月28日  上午9:21:09
 * Company: TravelSky
 */
@XmlRootElement
public class SourceHostVO extends HostAccessVO{

	private static final long serialVersionUID = -2814159082954182311L;

	/**工作目录，即替换配置文件准备分发包的目录*/
	private String workDir;
	
	/** svn 目录*/
	private String svnDir;
	
	/** war 名称*/
	private String warName;
	
	/** SVN对象*/
	private SVNConfigVO svnVO;
	
	/** 分发服务器对象*/
	private List<DestinationHostVO> dests = new ArrayList<DestinationHostVO>();
	
	@XmlElement
	public SVNConfigVO getSvnVO() {
		return svnVO;
	}

	public void setSvnVO(SVNConfigVO svnVO) {
		this.svnVO = svnVO;
	}
	
	@XmlElement
	public String getWorkDir() {
		return workDir;
	}

	public void setWorkDir(String workDir) {
		this.workDir = workDir;
	}
	@XmlElementWrapper(name="dests")
	@XmlElement(name="destHost")
	public List<DestinationHostVO> getDests() {
		return dests;
	}

	public void setDests(List<DestinationHostVO> dests) {
		this.dests = dests;
	}
	@XmlElement
	public String getSvnDir() {
		return svnDir;
	}

	public void setSvnDir(String svnDir) {
		this.svnDir = svnDir;
	}
	@XmlElement
	public String getWarName() {
		return warName;
	}

	public void setWarName(String warName) {
		this.warName = warName;
	}
	
}
